﻿using Microsoft.EntityFrameworkCore;
using S.PurchaseAndSales.Domain.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace S.PurchaseAndSales.Domain.SqlServer
{
    public class SqlDbContext : DbContext
    {
        public SqlDbContext(DbContextOptions<SqlDbContext> options) : base(options)
        {
        }

        #region 采购销售模块的表映射

        //客户信息表
        public DbSet<CustomerInformationModel> CustomerInformationModels { get; set; }
        //羊只采购表
        public DbSet<PurchaseFormModel> PurchaseFormModels { get; set; }
        //羊只销售表
        public DbSet<SheepSaleModel> SheepSaleModels { get; set; }
        //供应商表
        public DbSet<VendorModel> VendorModels { get; set; }

        #endregion
    }
}
